package hello;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

	protected final Logger logger = LogManager.getLogger(HelloController.class);
    
	@RequestMapping("/")
	public String index() {
		logger.trace("I am trace log.111");  
        logger.debug("I am debug log.111");  
        logger.info("I am info log.111"); 
        logger.warn("I am warn log.111");  
        logger.error("I am error log.111");
		return "测试log使用";
	}

}
